package com.anrongtec.zcpt.module;

/**
 * APP推送消息
 * 
 * @author dongtianhao
 *
 */
public class AppPushMsgInfo {
	public static final String DATA = "data";// 传递给APPextra的Key，用此key传递，也由此key解析
	public static final int TYPE_OPEN_APP = 0;// 只打开APP
	public static final int TYPE_HANDLE_BUS = 1;// 处理具体业务，需配合uri，flag以及data来处理
	private int type;
	private String pkgName;
	private String uri;
	private String appData;
	private int flag;// intent的flag
	private String msg = "一条新消息";// 显示的消息
	private String ticker = "一条新消息";
	private String title = "";

	public AppPushMsgInfo() {
	}

	public AppPushMsgInfo(int type, String pkgName, String uri, String data, int flag, String msg, String ticker,
			String title) {
		this.type = type;
		this.pkgName = pkgName;
		this.uri = uri;
		this.appData = data;
		this.flag = flag;
		this.msg = msg;
		this.ticker = ticker;
		this.title = title;
	}


	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getPkgName() {
		return pkgName;
	}

	public void setPkgName(String pkgName) {
		this.pkgName = pkgName;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getAppData() {
		return appData;
	}

	public void setAppData(String appData) {
		this.appData = appData;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getTicker() {
		return ticker;
	}

	public void setTicker(String ticker) {
		this.ticker = ticker;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public String toString() {
		return "AppPushMsgInfo [type=" + type + ", pkgName=" + pkgName + ", uri=" + uri + ", data=" + appData + ", flag="
				+ flag + "]";
	}

}
